<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8" />

    

    

    <title>FastDfs安装文档 | 郑礼德技术栈</title>
    <meta name="author" content="郑礼德" />
    <meta name="keywords" content="" />
    <meta name="description" content="fastdfs 分布式文件系统的部署文档安装gccfastdfs 是c 语音开发的，需要gcc 进行编译安装yum install -y gcc gcc-c++安装libeventyum -y install libeventFastDFS依赖libevent库；安装libfastcommon上传 libfastcommonV1.0.7.tar.gz解压文件tar -zxvf libfastcommonV1.0.7.tar.gz -C /usr/local/切换目录并安装cd..." />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />

    
    <link rel="alternate" href="/homepage/atom.xml" title="郑礼德技术栈" type="application/atom+xml">
    
    
    <link rel="icon" href="/homepage/images/favicon.ico">
    

    <style type="text/css">
    @font-face {
        font-family: 'icomoon';
        src: url("/homepage/fonts/icomoon.eot?q628ml");
        src: url("/homepage/fonts/icomoon.eot?q628ml#iefix") format('embedded-opentype'),
             url("/homepage/fonts/icomoon.ttf?q628ml") format('truetype'),
             url("/homepage/fonts/icomoon.woff?q628ml") format('woff'),
             url("/homepage/fonts/icomoon.svg?q628ml#icomoon") format('svg');
        font-weight: normal;
        font-style: normal;
    }
    </style>
    
<link rel="stylesheet" href="/homepage/css/style.css">


    <!--[if lt IE 9]>
    <style type="text/css">
    .nav-inner {top:0;}
    .author-meta {position:static;top:0;}
    .search-form {height:36px;}
    </style>
    <script type="text/javascript" src="https://unpkg.com/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
    <![endif]-->
<meta name="generator" content="Hexo 4.2.0"></head>
<body>

    <main class="app">
        <header id="header" class="header clearfix">
    <div id="nav" class="nav">
    <div class="nav-mobile">
        <button id="open-panel" class="open-panel nav-mobile-item"><i class="icon-documents"></i></button>
        <h1 class="nav-mobile-title nav-mobile-item">郑礼德技术栈</h1>
        <button id="open-menus" class="open-panel nav-mobile-item"><i class="icon-library"></i></button>
    </div>

    <nav id="nav-inner" class="nav-inner">
        
            <a class="nav-item" href="/homepage/">
                <span class="nav-text">首页</span>
            </a>
        
            <a class="nav-item" href="/homepage/categories/front-end">
                <span class="nav-text">前端</span>
            </a>
        
            <a class="nav-item" href="/homepage/categories/back-end">
                <span class="nav-text">后端</span>
            </a>
        
            <a class="nav-item" href="/homepage/categories/linux">
                <span class="nav-text">linux部署</span>
            </a>
        
            <a class="nav-item" href="/homepage/tags">
                <span class="nav-text">标签</span>
            </a>
        
            <a class="nav-item" href="/homepage/archives">
                <span class="nav-text">归档</span>
            </a>
        
            <a class="nav-item" href="/homepage/about">
                <span class="nav-text">关于</span>
            </a>
        
    </nav>
</div>

    <aside id="aside" class="aside">
    <div id="aside-mask" class="aside-mask"></div>
    <div id="aside-inner" class="aside-inner">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit"><i class="icon-search-stroke"></i></button><input type="hidden" name="sitesearch" value="http://zhenglide.gitee.io/homepage"></form>

        
        
        
        

        
        <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#安装gcc"><span class="toc-number">1.</span> <span class="toc-text">安装gcc</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#安装libevent"><span class="toc-number">2.</span> <span class="toc-text">安装libevent</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#安装libfastcommon"><span class="toc-number">3.</span> <span class="toc-text">安装libfastcommon</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#上传-libfastcommonV1-0-7-tar-gz"><span class="toc-number">3.1.</span> <span class="toc-text">上传 libfastcommonV1.0.7.tar.gz</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#解压文件"><span class="toc-number">3.2.</span> <span class="toc-text">解压文件</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#切换目录并安装"><span class="toc-number">3.3.</span> <span class="toc-text">切换目录并安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#把-usr-lib64-生成的libfastcommon-so-复制到-usr-lib"><span class="toc-number">3.4.</span> <span class="toc-text">把&#x2F;usr&#x2F;lib64 生成的libfastcommon.so 复制到&#x2F;usr&#x2F;lib</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#安装tracker"><span class="toc-number">4.</span> <span class="toc-text">安装tracker</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#上传FastDfs-v5-05-tar-gz"><span class="toc-number">4.1.</span> <span class="toc-text">上传FastDfs_v5.05.tar.gz</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#解压文件-1"><span class="toc-number">4.2.</span> <span class="toc-text">解压文件</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#切换目录并安装-1"><span class="toc-number">4.3.</span> <span class="toc-text">切换目录并安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#配置文件拷贝到-etc-fdfs-上"><span class="toc-number">4.4.</span> <span class="toc-text">配置文件拷贝到&#x2F;etc&#x2F;fdfs 上</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#配置启动tracker"><span class="toc-number">5.</span> <span class="toc-text">配置启动tracker</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#切换目录-cd-etc-fdfs"><span class="toc-number">5.1.</span> <span class="toc-text">切换目录 cd &#x2F;etc&#x2F;fdfs</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#拷贝tracker配置文件"><span class="toc-number">5.2.</span> <span class="toc-text">拷贝tracker配置文件</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#修改配置文件"><span class="toc-number">5.3.</span> <span class="toc-text">修改配置文件</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#创建配置目录，并启动"><span class="toc-number">5.4.</span> <span class="toc-text">创建配置目录，并启动</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#配置和启动storage"><span class="toc-number">6.</span> <span class="toc-text">配置和启动storage</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#切换目录并拷贝文件"><span class="toc-number">6.1.</span> <span class="toc-text">切换目录并拷贝文件</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#修改storage-conf"><span class="toc-number">6.2.</span> <span class="toc-text">修改storage.conf</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#创建-home-fdfs-storage-目录"><span class="toc-number">6.3.</span> <span class="toc-text">创建&#x2F;home&#x2F;fdfs_storage 目录</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#启动storage"><span class="toc-number">6.4.</span> <span class="toc-text">启动storage</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#使用FastDFS自带工具测试"><span class="toc-number">7.</span> <span class="toc-text">使用FastDFS自带工具测试</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#切换到-etc-fd-fs-目录并拷贝client-conf"><span class="toc-number">7.1.</span> <span class="toc-text">切换到&#x2F;etc&#x2F;fd&#x2F;fs 目录并拷贝client.conf</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#修改client-conf-文件-修改base-path-home-fastdfs-以及tacker-server-192-168-1-1-22122"><span class="toc-number">7.2.</span> <span class="toc-text">修改client.conf 文件  修改base_path&#x3D;&#x2F;home&#x2F;fastdfs  以及tacker_server&#x3D;192.168.1.1:22122</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#使用命令测试"><span class="toc-number">7.3.</span> <span class="toc-text">使用命令测试</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#fastDFS-和nginx整合"><span class="toc-number">8.</span> <span class="toc-text">fastDFS 和nginx整合</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#在storage-上安装nginx"><span class="toc-number">8.1.</span> <span class="toc-text">在storage 上安装nginx</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#安装nginx"><span class="toc-number">8.2.</span> <span class="toc-text">安装nginx</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#stroge启动命令：-usr-bin-fdfs-storaged-etc-fdfs-storage-conf-restart"><span class="toc-number">9.</span> <span class="toc-text">stroge启动命令：&#x2F;usr&#x2F;bin&#x2F;fdfs_storaged &#x2F;etc&#x2F;fdfs&#x2F;storage.conf restart</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#tracker启动命令：-usr-bin-fdfs-trackerd-etc-fdfs-tracker-conf-restart"><span class="toc-number">10.</span> <span class="toc-text">tracker启动命令：&#x2F;usr&#x2F;bin&#x2F;fdfs_trackerd &#x2F;etc&#x2F;fdfs&#x2F;tracker.conf restart</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#测试工具命令：-usr-bin-fdfs-test-测-etc-fdfs-client-conf-upload-usr1-luzhouYue-jpg"><span class="toc-number">11.</span> <span class="toc-text">测试工具命令：&#x2F;usr&#x2F;bin&#x2F;fdfs_test 测&#x2F;etc&#x2F;fdfs&#x2F;client.conf upload &#x2F;usr1&#x2F;luzhouYue.jpg</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#配置文件为"><span class="toc-number">12.</span> <span class="toc-text">配置文件为</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#说明"><span class="toc-number">13.</span> <span class="toc-text">说明</span></a></li></ol>
        
    </div>
</aside>

</header>

        <div id="content" class="content">
            <div id="wrapper" class="wrapper" style="max-width: 800px">
                <article class="article" itemscope itemprop="blogPost">
    
    <header class="article-header">
        
        <h1 itemprop="name">
            FastDfs安装文档
        </h1>
        
        <div class="article-meta clearfix">
            <a class="article-date" href="http://zhenglide.gitee.io/homepage/2020/03/28/FastDfs%E5%AE%89%E8%A3%85%E6%96%87%E6%A1%A3/index.html">
    
    <i class="icon-calendar"></i>
    
    <time datetime="2020-03-28T03:32:26.000Z" itemprop="datePublished">2020-03-28</time>
</a>

            
<div class="article-tag-list">
    <i class="icon-tag"></i>
    <a class="article-tag-link" href="/homepage/tags/linux/" rel="tag">linux</a>, <a class="article-tag-link" href="/homepage/tags/nginx/" rel="tag">nginx</a>
</div>


        </div>
    </header>
    
    <section class="article-body markdown-body">
        
        <p>fastdfs 分布式文件系统的部署文档</p>
<a id="more"></a>

<h2 id="安装gcc"><a href="#安装gcc" class="headerlink" title="安装gcc"></a>安装gcc</h2><p>fastdfs 是c 语音开发的，需要gcc 进行编译安装</p>
<p>yum install -y gcc gcc-c++</p>
<h2 id="安装libevent"><a href="#安装libevent" class="headerlink" title="安装libevent"></a>安装libevent</h2><p>yum -y install libevent<br>FastDFS依赖libevent库；</p>
<h2 id="安装libfastcommon"><a href="#安装libfastcommon" class="headerlink" title="安装libfastcommon"></a>安装libfastcommon</h2><h3 id="上传-libfastcommonV1-0-7-tar-gz"><a href="#上传-libfastcommonV1-0-7-tar-gz" class="headerlink" title="上传 libfastcommonV1.0.7.tar.gz"></a>上传 libfastcommonV1.0.7.tar.gz</h3><h3 id="解压文件"><a href="#解压文件" class="headerlink" title="解压文件"></a>解压文件</h3><p>tar -zxvf libfastcommonV1.0.7.tar.gz -C /usr/local/</p>
<h3 id="切换目录并安装"><a href="#切换目录并安装" class="headerlink" title="切换目录并安装"></a>切换目录并安装</h3><p>cd /usr/local/libfastcommon-1.0.7/<br>./make.sh           #编译<br>./make.sh install   #安装</p>
<h3 id="把-usr-lib64-生成的libfastcommon-so-复制到-usr-lib"><a href="#把-usr-lib64-生成的libfastcommon-so-复制到-usr-lib" class="headerlink" title="把/usr/lib64 生成的libfastcommon.so 复制到/usr/lib"></a>把/usr/lib64 生成的libfastcommon.so 复制到/usr/lib</h3><h2 id="安装tracker"><a href="#安装tracker" class="headerlink" title="安装tracker"></a>安装tracker</h2><h3 id="上传FastDfs-v5-05-tar-gz"><a href="#上传FastDfs-v5-05-tar-gz" class="headerlink" title="上传FastDfs_v5.05.tar.gz"></a>上传FastDfs_v5.05.tar.gz</h3><h3 id="解压文件-1"><a href="#解压文件-1" class="headerlink" title="解压文件"></a>解压文件</h3><p>tar -zxvf FastDFS_v5.05.tar.gz -C /usr/local</p>
<h3 id="切换目录并安装-1"><a href="#切换目录并安装-1" class="headerlink" title="切换目录并安装"></a>切换目录并安装</h3><p>cd /usr/local/FastDFS/<br>./make.sh &amp;&amp; ./make.sh install  #编译之后接着进行安装</p>
<h3 id="配置文件拷贝到-etc-fdfs-上"><a href="#配置文件拷贝到-etc-fdfs-上" class="headerlink" title="配置文件拷贝到/etc/fdfs 上"></a>配置文件拷贝到/etc/fdfs 上</h3><p>cp /usr/local/FastDFS/conf/* /etc/fdfs/</p>
<h2 id="配置启动tracker"><a href="#配置启动tracker" class="headerlink" title="配置启动tracker"></a>配置启动tracker</h2><h3 id="切换目录-cd-etc-fdfs"><a href="#切换目录-cd-etc-fdfs" class="headerlink" title="切换目录 cd /etc/fdfs"></a>切换目录 cd /etc/fdfs</h3><h3 id="拷贝tracker配置文件"><a href="#拷贝tracker配置文件" class="headerlink" title="拷贝tracker配置文件"></a>拷贝tracker配置文件</h3><p>cp tracker.conf.sample tracker.conf</p>
<h3 id="修改配置文件"><a href="#修改配置文件" class="headerlink" title="修改配置文件"></a>修改配置文件</h3><p>base_path=/home/yuqing/fastdfs  改为:  base_path=/home/fastdfs<br>http.server_port  改为： 80<br>base_path=/home/fastdfs<br>http.server_port=80  #配置http端口</p>
<h3 id="创建配置目录，并启动"><a href="#创建配置目录，并启动" class="headerlink" title="创建配置目录，并启动"></a>创建配置目录，并启动</h3><p>mkdir /home/fastdfs</p>
<h2 id="配置和启动storage"><a href="#配置和启动storage" class="headerlink" title="配置和启动storage"></a>配置和启动storage</h2><h3 id="切换目录并拷贝文件"><a href="#切换目录并拷贝文件" class="headerlink" title="切换目录并拷贝文件"></a>切换目录并拷贝文件</h3><p>cd /etc/fdfs<br>cp storage.conf.sample storage.conf</p>
<h3 id="修改storage-conf"><a href="#修改storage-conf" class="headerlink" title="修改storage.conf"></a>修改storage.conf</h3><p>group_name=group1 #配置组名<br>base_path=/home/yuqing/fastdfs    改为:  base_path=/home/fastdfs</p>
<p>#store存放文件的位置(store_path)<br>store_path0=/home/yuqing/fastdfs  改为： store_path0=/home/fdfs_storage<br>#如果有多个挂载磁盘则定义多个store_path，如下<br>#store_path1=…..<br>#store_path2=……</p>
<p>#配置tracker服务器:IP<br>tracker_server=192.168.172.20:22122<br>#如果有多个则配置多个tracker<br>#tracker_server=192.168.101.4:22122</p>
<p>#配置http端口<br>http.server_port=88</p>
<h3 id="创建-home-fdfs-storage-目录"><a href="#创建-home-fdfs-storage-目录" class="headerlink" title="创建/home/fdfs_storage 目录"></a>创建/home/fdfs_storage 目录</h3><p>mkdir /home/fdfs_storage</p>
<h3 id="启动storage"><a href="#启动storage" class="headerlink" title="启动storage"></a>启动storage</h3><h2 id="使用FastDFS自带工具测试"><a href="#使用FastDFS自带工具测试" class="headerlink" title="使用FastDFS自带工具测试"></a>使用FastDFS自带工具测试</h2><h3 id="切换到-etc-fd-fs-目录并拷贝client-conf"><a href="#切换到-etc-fd-fs-目录并拷贝client-conf" class="headerlink" title="切换到/etc/fd/fs 目录并拷贝client.conf"></a>切换到/etc/fd/fs 目录并拷贝client.conf</h3><p>cp client.conf.sample client.conf</p>
<h3 id="修改client-conf-文件-修改base-path-home-fastdfs-以及tacker-server-192-168-1-1-22122"><a href="#修改client-conf-文件-修改base-path-home-fastdfs-以及tacker-server-192-168-1-1-22122" class="headerlink" title="修改client.conf 文件  修改base_path=/home/fastdfs  以及tacker_server=192.168.1.1:22122"></a>修改client.conf 文件  修改base_path=/home/fastdfs  以及tacker_server=192.168.1.1:22122</h3><h3 id="使用命令测试"><a href="#使用命令测试" class="headerlink" title="使用命令测试"></a>使用命令测试</h3><h2 id="fastDFS-和nginx整合"><a href="#fastDFS-和nginx整合" class="headerlink" title="fastDFS 和nginx整合"></a>fastDFS 和nginx整合</h2><h3 id="在storage-上安装nginx"><a href="#在storage-上安装nginx" class="headerlink" title="在storage 上安装nginx"></a>在storage 上安装nginx</h3><ul>
<li><p>上传 fastdfs-nginx-module_v1.16.tar.gz </p>
</li>
<li><p>解压文件</p>
<p>tar -zxvf fastdfs-nginx-module_v1.16.tar.gz -C /usr/local</p>
</li>
<li><p>切换目录cd /usr/local/fastdfs-nginx-module/src/</p>
</li>
<li><p>修改config 文件，文件中/usr/local/修改为/usr/</p>
</li>
<li><p>将fastdfs-nginx-module/src下的mod_fastdfs.conf拷贝至/etc/fdfs/下</p>
<p>cp mod_fastdfs.conf /etc/fdfs/</p>
</li>
<li><p>修改/etc/fdfs/mod_fastdfs.conf 内容 vim /etc/fdfs/mod_fastdfs.conf</p>
<p>base_path=/home/fastdfs<br>tracker_server=192.168.172.20:22122<br>#tracker_server=192.168.172.20:22122 #(多个tracker配置多行)<br>url_have_group_name=true        #url中包含group名称<br>store_path0=/home/fdfs_storage  #指定文件存储路径（上面配置的store路径）<br> 修改base_path 为/home/fastdfs</p>
</li>
<li><p>将libfdfsclient.so拷贝至/usr/lib下</p>
<p>cp /usr/lib64/libfdfsclient.so /usr/lib/</p>
</li>
<li><p>创建nginx/client目录</p>
<p>mkdir -p /var/temp/nginx/client</p>
</li>
</ul>
<h3 id="安装nginx"><a href="#安装nginx" class="headerlink" title="安装nginx"></a>安装nginx</h3><ul>
<li><p>上传并解压文件</p>
<p>tar -zxvf nginx-1.8.0.tar.gz -C /usr/local/</p>
</li>
<li><p>安装nginx依赖库</p>
<p>yum install pcre<br>yum install pcre-devel<br>yum install zlib<br>yum install zlib-devel<br>yum install openssl<br>yum install openssl-devel</p>
</li>
<li><p>加入模块命令</p>
<p>./configure <br>–prefix=/usr/local/nginx <br>–pid-path=/var/run/nginx/nginx.pid <br>–lock-path=/var/lock/nginx.lock <br>–error-log-path=/var/log/nginx/error.log <br>–http-log-path=/var/log/nginx/access.log <br>–with-http_gzip_static_module <br>–http-client-body-temp-path=/var/temp/nginx/client <br>–http-proxy-temp-path=/var/temp/nginx/proxy <br>–http-fastcgi-temp-path=/var/temp/nginx/fastcgi <br>–http-uwsgi-temp-path=/var/temp/nginx/uwsgi <br>–http-scgi-temp-path=/var/temp/nginx/scgi <br>–add-module=/usr/local/fastdfs-nginx-module/src</p>
</li>
<li><p>编译安装</p>
<p>make &amp;&amp; make install</p>
</li>
<li><p>拷贝文件到/etc/fdfs上</p>
<p>cd /usr/local/FastDFS/conf<br>cp http.conf mime.types /etc/fdfs/</p>
</li>
<li><p>修改nginx 配置文件</p>
<p>mkdir /usr/local/nginx/logs # 创建logs目录<br>cd /usr/local/nginx/conf/<br>vim nginx.conf</p>
</li>
<li><p>启动nginx</p>
<p>cd /usr/local/nginx/sbin/<br>./nginx</p>
</li>
</ul>
<h2 id="stroge启动命令：-usr-bin-fdfs-storaged-etc-fdfs-storage-conf-restart"><a href="#stroge启动命令：-usr-bin-fdfs-storaged-etc-fdfs-storage-conf-restart" class="headerlink" title="stroge启动命令：/usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart"></a>stroge启动命令：/usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart</h2><h2 id="tracker启动命令：-usr-bin-fdfs-trackerd-etc-fdfs-tracker-conf-restart"><a href="#tracker启动命令：-usr-bin-fdfs-trackerd-etc-fdfs-tracker-conf-restart" class="headerlink" title="tracker启动命令：/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart"></a>tracker启动命令：/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart</h2><h2 id="测试工具命令：-usr-bin-fdfs-test-测-etc-fdfs-client-conf-upload-usr1-luzhouYue-jpg"><a href="#测试工具命令：-usr-bin-fdfs-test-测-etc-fdfs-client-conf-upload-usr1-luzhouYue-jpg" class="headerlink" title="测试工具命令：/usr/bin/fdfs_test 测/etc/fdfs/client.conf upload /usr1/luzhouYue.jpg"></a>测试工具命令：/usr/bin/fdfs_test 测/etc/fdfs/client.conf upload /usr1/luzhouYue.jpg</h2><h2 id="配置文件为"><a href="#配置文件为" class="headerlink" title="配置文件为"></a>配置文件为</h2><p>pid /usr/local/nginx/logs/nginx.pid<br>server {<br>   listen 8888;<br>   server_name 192.168.1.1<br>   location /group1/M00/{<br>       root /home/fdfs_storage/data;<br>      ngx_fastdfs_module;<br>   } </p>
<p>}</p>
<h2 id="说明"><a href="#说明" class="headerlink" title="说明"></a>说明</h2><p>(a.) server_name指定本机ip；<br> (b.) location /group1/M00/：group1为nginx 服务FastDFS的分组名称，M00是FastDFS自动生成编号，对应store_path0=/home/fdfs_storage，如果FastDFS定义store_path1，这里就是M01</p>
<p><em>XMind: ZEN - Trial Version</em></p>

        
    </section>
</article>



<a id="pagenext" href="/homepage/2020/03/28/Vue%E8%84%9A%E6%89%8B%E6%9E%B62-0%E9%A1%B9%E7%9B%AE%E6%90%AD%E5%BB%BA/" class="article-next" title="Vue脚手架2.0项目搭建"><i class="icon-arrow-right"></i></a>


<a id="pageprev" href="/homepage/2020/03/28/%E8%AE%B0%E5%BD%95vue%E5%BC%80%E5%8F%91%E4%B8%AD%E9%81%87%E5%88%B0%E7%9A%84%E9%97%AE%E9%A2%98/" class="article-prev" title="记录vue开发中遇到的问题"><i class="icon-arrow-left"></i></a>




            </div>
        </div>
        <footer class="footer">
    Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>, Theme by <a href="https://github.com/sanonz/hexo-theme-concise" target="_blank">Concise</a>

    
    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?b13bb4c2ef8300062aab9732bd22eae0";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
    
</footer>

    </main>

    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/1.9.0/jquery.min.js"></script>
    <script type="text/javascript">
    $(function() {
        var nodes = {
            nav: $('#nav'),
            aside: $('#aside'),
            asideInner: $('#aside-inner'),
            navInner: $('#nav-inner')
        };

        var doing = false;
        nodes.asideInner.on('webkitAnimationEnd mozAnimationEnd oAnimationEnd oanimationend animationend', function() {
            if (nodes.aside.hasClass('mobile-open')) {
                nodes.aside.removeClass('mobile-open');
            } else {
                nodes.aside.removeClass('mobile-close panel-show');
            }
            doing = false;
        });
        $('#open-panel, #aside-mask').on('click', function() {
            if (doing) {
                return;
            }

            if (nodes.aside.hasClass('panel-show')) {
                nodes.aside.addClass('mobile-close');
            } else {
                nodes.aside.addClass('mobile-open panel-show');
            }
        });
        $('#open-menus').on('click', function() {
            nodes.navInner.slideToggle();
        });

        if (window.innerWidth <= 960) {
            setTimeout(function() {
                nodes.navInner.slideUp();
            }, 3000);
        }
    });
    </script>
    
        
<script src="/homepage/js/scrollspy.min.js"></script>

        <script type="text/javascript">
        $(document.body).scrollspy({target: '#aside-inner'});

        $(window).on('resize', function() {
            var hw = $('#header').width();
            var ww = $('#wrapper').width();
            var space = ($(this).width() - hw - ww) / 2 / 2;

            var pageprev = $('#pageprev');
            var pagenext = $('#pagenext');
            var avg = (pageprev.width() + pagenext.width()) / 2

            if(space > avg) {
                var len = space - avg / 2;
                var styles = {position: 'fixed', top: '50%', marginTop: - (pageprev.width() + pagenext.width()) / 4}
                pageprev.css($.extend({left: hw + len}, styles));
                pagenext.css($.extend({right: len}, styles));
            } else {
                pageprev.removeAttr('style');
                pagenext.removeAttr('style');
            }
        }).trigger('resize');
        </script>
    

</body>
</html>
